package objectmodule;

public class A {
    String AName;
    private String id = "ID-A";

    public A() {
        System.out.println("A()");
    }

    public String getID() {
        return id;
    }
}

class B extends A {
    String id = "ID-B";

    public B() {
        System.out.println("B()");
    }

    public String getID() {
        System.out.println(super.getID());
        System.out.println(id);
        return id;
    }
}

class TestExtends {
    public static void main(String[] args) {
        B b1 = new B();
        System.out.println(b1.getID());
    }
}
